package com.ldn.starter.reporter;

import com.mybatisflex.core.audit.AuditMessage;
import com.mybatisflex.core.audit.MessageReporter;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

/**
 * @author 李大牛家的牛 (scafel@163.com) 
 * @createDate 2024/7/9 - 16:59
 * @description ...
 **/
@Slf4j
public class MyBatisFlexMessageReporter implements MessageReporter {

    @Override
    public void sendMessages(List<AuditMessage> messages) {
        for (AuditMessage message : messages) {
            log.info("MyBatisFlexMessageReporter sendMessages => {}\n", message);
        }
    }
}
